home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group98b.txt
/
000007_icon-group-sender _Wed Apr 29 12:22:14 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2000-09-20
|
3KB
Return-Path: <icon-group-sender>
Received: from kingfisher.CS.Arizona.EDU (kingfisher.CS.Arizona.EDU [192.12.69.239])
by baskerville.CS.Arizona.EDU (8.8.8/8.8.7) with SMTP id MAA21969
for <icon-group-addresses@baskerville.CS.Arizona.EDU>; Wed, 29 Apr 1998 12:22:14 -0700 (MST)
Received: by kingfisher.CS.Arizona.EDU (5.65v4.0/1.1.8.2/08Nov94-0446PM)
id AA10283; Wed, 29 Apr 1998 12:22:11 -0700
Message-Id: <3.0.5.32.19980429075520.007a38f0@doors>
X-Sender: bgbauer#alpha.delta.edu@doors
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32)
Date: Wed, 29 Apr 1998 07:55:20 -0700
To: "Icon Group"<icon-group@optima.CS.Arizona.EDU>
From: Scissors <jebediah@bigfoot.com>
Subject: EOL Termination Sequences.
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Errors-To: icon-group-errors@optima.CS.Arizona.EDU
Status: RO
Content-Length: 1599
Is anyone out there using Win95/dos?
Im having a terrible time with eol termination sequences.
Two problems mostly. Ive set the WI Line termination option to
linebreak=CRLF
but for some reason, every so often. (seems to be random as far as I can
tell.)
I will save a file, and *BANG* all the 100+ lines of text lose their EOL's and
end up in four lines at the top of my window. For the most part this is
happening inside of notepad. If I edit a file that was saved using WI, it
appears to be using strange EOL's which Notepad zaps on saving the file.
Ive never encountered this before using Icon, and it doesnt happen when Im
editing anything but Icon source. Ive checked the settings, all seems fine.
: /
Help!?!
Secondly, im loading a file using:
lines := []
lines := filetext(fname)
when I find the line I wish to insert text after, I have been using
lines[i] := lines[i] || "\r\l" || "what I want to insert"
(The reason Im 'appending it' is because when I tried it before, it would
allow me to add any new lines to 'lines[]'. When I first created the
procedure, I was attempting to slide all the remaining down a notch, thus
freeing up one of list[], so I could then inserting the new line. But it
would not add anything beyond the original *line.)
ok, so this all works ok... until I open the file in notepad, and save it.
then the line I inserted last shows up as
Previous TextNew Text
is "\r\l" the incorrect line termination sequence? I tried "\r\n" and it
does the same. What is the correct EOL for dos/win?
Thanks for any help in advance
jebediah@bigfoot.com